

<table id='table1' border="1">
<th>选择</th>
<th>值</th>
<tr>
<td><input type=checkbox name=check></td>
<td>1.0</td><td>1.1</td><td>1.2</td>

</tr>

<tr>
<td><input type=checkbox name=check></td>
<td>1.111</td><td>1.1</td><td>1.2</td>

</tr>
</table>

<input type="button" value="增加" id="addTable"/>

<input type="button" value="删除" id="deleteTable"/>

 <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>//记得导入这个库

<script>

$(document).ready(function(){

    $("#addTable").click(function(){

       var tr="<tr><td><input type=\"checkbox\" name=\"check\"/>"+

              "</td><td>111</td><td>222</td><td>333</td></tr>";

　  　$("#table1").append(tr);　　

    });

    $("#deleteTable").click(function(){

        var check = document.getElementsByName("check");

        for(var i=0;i<check.length;i++){

            if(check[i].checked){

                 document.getElementById('table1').deleteRow(i);

                 i--;

            }

        }

    })

})

</script>